-
Notifications
You must be signed in to change notification settings - Fork 6
Fix error outputSchema defined but no structured output returned #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…atibility with the MCP package ≥ 1.10), and prevent the MCP server from auto‑updating going forward.
9b37023
to
d45b95f
Compare
Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes a compatibility issue with the MCP (Model Context Protocol) package version 1.10, which introduced automatic output schema detection through type hints. The change disables structured output for all tools to maintain backward compatibility with the existing codebase that has type hints but doesn't follow the recommended structure.
- Adds
structured_output=False
parameter to all tool registrations to prevent auto-detection - Includes a reference to issue #12 for implementing a proper structured output solution
ydb_mcp/server.py
Outdated
spec["handler"], | ||
name=spec["name"], | ||
description=spec["description"], | ||
structured_output=False, # Structured output is temporarily disabled until proper schema definitions are implemented. See https://github.com/ydb-platform/ydb-mcp/issues/12 for details. |
Copilot
AI
Aug 11, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment should explain why structured_output is disabled, not just reference an issue. Consider: '# Disable structured output due to MCP 1.10 auto-detection breaking existing tools - see issue #12'
structured_output=False, # Structured output is temporarily disabled until proper schema definitions are implemented. See https://github.com/ydb-platform/ydb-mcp/issues/12 for details. | |
structured_output=False, # Disable structured output due to MCP 1.10 auto-detection breaking existing tools - see issue #12 |
Copilot uses AI. Check for mistakes.
The mcp package add auto output schema detection by typehints in 1.10 version
modelcontextprotocol/python-sdk#1005
For our code it break all output, because we have typehint, but not follow recommended struct.
The fix need for fix work in old style.
Better fix with describe scheme #12